﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    public const int BEGIN = 1;
    //对象级变量作用域
    private int a = 2;


    //文档注释：///
    /// <summary>
    /// 
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        int b = 3;  //局部变量
        // Ctrl+.   提示
        Debug.Write("在Debug模式下1，显示调试窗口");
        //单行注释
        /*多行注释*/
        Response.Write("常量" + BEGIN + "<br>");
        Response.Write("变量" + a + "<br>");
        for (int i = 0; i<b;i++) 
        {
            //i就是块级变量
        }
    }
}